package com.road.yishi.core;

import org.apache.mina.core.session.IoSession;

import com.road.yishi.execaction.CmdExecutor;
import com.road.yishi.mina.ServerHandler;

/**
 * @Description :
 * @FileName: CastleServerHandler.java
 * @Author :WeiHui.Zhang
 * @Data : 2016年2月26日 上午10:20:01
 * @Version:V1.00
 */
public class CastleServerHandler extends ServerHandler {

	public static CmdExecutor executor;

	static {
		int corePoolSize = 8;
		int maxPoolSize = 64;
		int keepAliveTime = 5;
		executor = new CmdExecutor(corePoolSize, maxPoolSize, keepAliveTime, "CastleServerHandler");
	}

	public CastleServerHandler() {
		super("CastleServerHandler");
	}

	/**
	 * 当有用户ID时，这是玩家自己个人信息的请求，放入玩家个人请求执行队列；
	 * 
	 * 当没有用户ID时，是请求游戏里基本信息，放入公共请求队列
	 */
	@Override
	public void messageReceived(IoSession session, Object message) throws Exception {
		super.messageReceived(session, message);
		
		System.out.println("接收到消息。。。," + message);
	}

}
